package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.Warning;
import com.dwxt.cdms.view.WarningView;
import com.dwxt.cdms.vo.SelectWaringVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface WarningMapper extends Mapper<Warning> {

    List<WarningView> selectWarningByCondition(SelectWaringVo selectWaringVo);

    Warning selectWarningById(String id);

    List<Warning> findWatchWarning(@Param("start") Date start, @Param("end")Date end);

    Integer getAllCount();

    List<WarningView> selectRemoveWarning(@Param("hour") int hour);
}